package org.flower.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CommodityDetails {
    private Integer id;

    public CommodityDetails() {
    }

    public CommodityDetails(Integer id, String comname, String content, Integer outnum, Double outprice, Double marketprice, String materialscience, String packing, String distribution, String comimage, String detailsimage, Integer comshowid, Integer classid, Integer stockd, Date insertdate) {
        this.id = id;
        this.comname = comname;
        this.content = content;
        this.outnum = outnum;
        this.outprice = outprice;
        this.marketprice = marketprice;
        this.materialscience = materialscience;
        this.packing = packing;
        this.distribution = distribution;
        this.comimage = comimage;
        this.detailsimage = detailsimage;
        this.comshowid = comshowid;
        this.classid = classid;
        this.stockd = stockd;
        this.insertdate = insertdate;
    }

    @Override
    public String toString() {
        return "CommodityDetails{" +
                "id=" + id +
                ", comname='" + comname + '\'' +
                ", content='" + content + '\'' +
                ", outnum=" + outnum +
                ", outprice=" + outprice +
                ", marketprice=" + marketprice +
                ", materialscience='" + materialscience + '\'' +
                ", packing='" + packing + '\'' +
                ", distribution='" + distribution + '\'' +
                ", comimage='" + comimage + '\'' +
                ", detailsimage='" + detailsimage + '\'' +
                ", comshowid=" + comshowid +
                ", classid=" + classid +
                ", stockd=" + stockd +
                ", insertdate=" + insertdate +
                '}';
    }

    private String comname;

    private String content;

    /**
     * 描述分割第二部分
     */
    private String content2;





    private Integer outnum;

    private Double outprice;

    private Double marketprice;

    private String materialscience;

    private String packing;

    private String distribution;

    private String comimage;

    private String detailsimage;

    private Integer comshowid;

    private Integer classid;

    private Integer stockd;

    private Date insertdate;

    /**
     * 排序编号
     */
    private Integer sortNo = 0;

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    /**
     *     is商品查询
     */
    private boolean findFlag;

    public boolean isFindFlag() {
        return findFlag;
    }

    public void setFindFlag(boolean findFlag) {
        this.findFlag = findFlag;
    }

    /**
     * 商品数量
     */
    private int num;

    /**
     * 小计价格
     */
    private double totalPrice;


    public String getContent2() {
        return content2;
    }

    public void setContent2(String content2) {
        this.content2 = content2;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    /**
     * 最小价格&最大价格
     */
    private Double outPriceMin;
    private Double outPriceMax;
    /**
     * 商品图片集合
     */
    private List<String> comImages = new ArrayList<>();

    /**
     * 商品详情图片集合
     */
    private List<String> detailsImage = new ArrayList<>();

    public List<String> getDetailsImage() {
        return detailsImage;
    }

    public void setDetailsImage(List<String> detailsImage) {
        this.detailsImage = detailsImage;
    }

    /**
     * 类别名称
     */
    private String className;

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public List<String> getComImages() {
        return comImages;
    }

    public void setComImages(List<String> comImages) {
        this.comImages = comImages;
    }


    public Double getOutPriceMin() {
        return outPriceMin;
    }

    public void setOutPriceMin(Double outPriceMin) {
        this.outPriceMin = outPriceMin;
    }

    public Double getOutPriceMax() {
        return outPriceMax;
    }

    public void setOutPriceMax(Double outPriceMax) {
        this.outPriceMax = outPriceMax;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getComname() {
        return comname;
    }

    public void setComname(String comname) {
        this.comname = comname == null ? null : comname.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getOutnum() {
        return outnum;
    }

    public void setOutnum(Integer outnum) {
        this.outnum = outnum;
    }

    public Double getOutprice() {
        return outprice;
    }

    public void setOutprice(Double outprice) {
        this.outprice = outprice;
    }

    public Double getMarketprice() {
        return marketprice;
    }

    public void setMarketprice(Double marketprice) {
        this.marketprice = marketprice;
    }

    public String getMaterialscience() {
        return materialscience;
    }

    public void setMaterialscience(String materialscience) {
        this.materialscience = materialscience == null ? null : materialscience.trim();
    }

    public String getPacking() {
        return packing;
    }

    public void setPacking(String packing) {
        this.packing = packing == null ? null : packing.trim();
    }

    public String getDistribution() {
        return distribution;
    }

    public void setDistribution(String distribution) {
        this.distribution = distribution == null ? null : distribution.trim();
    }

    public String getComimage() {
        return comimage;
    }

    public void setComimage(String comimage) {
        this.comimage = comimage == null ? null : comimage.trim();
    }

    public String getDetailsimage() {
        return detailsimage;
    }

    public void setDetailsimage(String detailsimage) {
        this.detailsimage = detailsimage == null ? null : detailsimage.trim();
    }

    public Integer getComshowid() {
        return comshowid;
    }

    public void setComshowid(Integer comshowid) {
        this.comshowid = comshowid;
    }

    public Integer getClassid() {
        return classid;
    }

    public void setClassid(Integer classid) {
        this.classid = classid;
    }

    public Integer getStockd() {
        return stockd;
    }

    public void setStockd(Integer stockd) {
        this.stockd = stockd;
    }

    public Date getInsertdate() {
        return insertdate;
    }

    public void setInsertdate(Date insertdate) {
        this.insertdate = insertdate;
    }
}